import request from '@/utils/request'

// 查询客户签卡记录列表
export function listSignIn(query) {
  return request({
    url: '/hrcrm/signIn/list',
    method: 'get',
    params: query
  })
}

// 查询客户签卡记录详细
export function getSignIn(id) {
  return request({
    url: '/hrcrm/signIn/' + id,
    method: 'get'
  })
}

// 新增客户签卡记录
export function addSignIn(data) {
  return request({
    url: '/hrcrm/signIn',
    method: 'post',
    data: data
  })
}

// 修改客户签卡记录
export function updateSignIn(data) {
  return request({
    url: '/hrcrm/signIn',
    method: 'put',
    data: data
  })
}

// 删除客户签卡记录
export function delSignIn(id) {
  return request({
    url: '/hrcrm/signIn/' + id,
    method: 'delete'
  })
}

// 审批签卡
export function audits(id) {
  return request({
    url: '/hrcrm/signIn/audits/' + id,
    method: 'put'
  })
}
